{extends file="../home.html"}
{block name="title"}{$head_title}{/block}

{block name="css"}
<link href="__PUBLIC__/Css/front/css/publish_post.css?version={$version}" type="text/css" rel="stylesheet">
<style type="text/css">

</style>
{/block}
{block name="content"}

	
	<div class="com_header">
		<a href="javascript:;" class="go_back"><i class="icon_back"></i></a>发贴
	</div>

	<form>
		<div class="reply">
			<div class="add_title">
				<input type="text" placeholder="添加文章标题" name="title" id="title">	
			</div>
			<div class="add_main">
				<textarea placeholder="请输入展示内容" rows="3" id="content" name="content"></textarea> 
				<a href="javascript:;" class="icon_upload" id="upload_btn"></a>
				<a href="javascript:;" class="icon_voice"></a>

				<input type="file" name="file" style="display: none;" onchange="upload_image(this);" 
				id="uploader">
				<input type="hidden" name="uptoken" id="uptoken" value="4d7XEKpTKB7Q1_FNomChETU9EvMCKidr5sRsKRt2:WA5DLw8-3qk-qFaevcdXUcqD_ck=:eyJzY29wZSI6ImN5ZnBpYyIsImRlYWRsaW5lIjoxNDk5MjU0ODQ4fQ==">
	    		<input type="hidden" name="image_domain" id="image_domain" value="http://oqelng5sm.bkt.clouddn.com/">
	        	<input type="hidden" class="img_url" id="img_url" value="">

	        	<ul class="img_list clearfix" id="img_list1">
	        		<!-- <li>
	        			<img src="/Public/Images/img/Mask@3x.png" alt=""><span class="del_img" onclick="del_img(this)"></span>
	        		</li>
	        		<li>
	        			<img src="/Public/Images/img/Mask@3x.png" alt=""><span class="del_img" onclick="del_img(this)"></span>
	        		</li>
	        		<li>
	        			<img src="/Public/Images/img/Mask@3x.png" alt=""><span class="del_img" onclick="del_img(this)"></span>
	        		</li> -->
	        	</ul>
			</div>
			<!-- <div class="hide_cont">
				<h5>隐藏内容</h5>
				<div class="add_hide">
					<textarea placeholder="请输入隐藏内容" rows="3" id="hide_content"></textarea> 
					<a href="javascript:;" class="icon_upload" id="upload_btn2"></a>
					<a href="javascript:;" class="icon_voice"></a>
					
					
					<input type="file" name="file2" style="display: none;" onchange="upload_image2(this);" 
					id="uploader2">

		        	<input type="hidden" class="img_url" id="img_url2" value="">

					<ul class="img_list clearfix" id="img_list2">
		        		<li>
		        			<img src="/Public/Images/img/Mask@3x.png" alt=""><span class="del_img" onclick="del_img(this)"></span>
		        		</li>
		        		<li>
		        			<img src="/Public/Images/img/Mask@3x.png" alt=""><span class="del_img" onclick="del_img(this)"></span>
		        		</li>
		        		<li>
		        			<img src="/Public/Images/img/Mask@3x.png" alt=""><span class="del_img" onclick="del_img(this)"></span>
		        		</li>
		        	</ul>
				</div>
			</div> -->
		</div>

		<div class="set_price">
			<h4>设置心愿所需金额</h4>
			<div class="btn_group">
				<span class="btn active money">0.1元</span>
				<span class="btn money">1.0元</span>
				<span class="btn money">2.0元</span>
				<span class="btn money">5.0元</span>
				<span class="btn money">10.0元</span>
				<span class="btn money">15.0元</span>
				<span class="btn money">20.0元</span>
				<input type="text" placeholder="自定义">
			</div>
		</div>



		<!-- 悬赏贴邀请好友 -->
		<div class="select_friend">
			<a href="/Index/my_follow"><i class="icon_yaoqing"></i><span>邀请用户</span></a>
		</div>
		<ul class="user_list">
			<li>
				<img src="/Public/Images/img/Mask@3x.png" alt="">
				<span class="nickname">花花世界</span>
				<i class="icon_delete"></i>
			</li>
			<li>
				<img src="/Public/Images/img/Mask@3x.png" alt="">
				<span class="nickname">花花世界</span>
				<i class="icon_delete"></i>
			</li>
			<li>
				<img src="/Public/Images/img/Mask@3x.png" alt="">
				<span class="nickname">花花世界</span>
				<i class="icon_delete"></i>
			</li>
			<li>
				<img src="/Public/Images/img/Mask@3x.png" alt="">
				<span class="nickname">花花世界</span>
				<i class="icon_delete"></i>
			</li>
		</ul>
		<!-- 后台富文本显示 -->
		<div class="tips">
		1、请在5天内采纳一个“最佳答案”<br>
		2、如果5天内无人回答，您可以申请退款<br>
		3、所有围观用户的消耗将有50%分配给您，另50%计入到赏金总额。<br>
		</div>

	</form>
	

	<!-- 固定底部 -->
	<div class="fixed_bot"> 
		发表
	</div>
{/block}
{block name="js"}

{literal}
<script src="/Public/Js/front/js/post_zs.js"></script>
<script>
$('.money').on('click',function(){
	$(this).addClass('active').siblings().removeClass('active')
})
if(!is_ios()){
	$("input[name=file]").attr({
		'capture':'camera',
		'accept':'image/*'
	});
}

$('.fixed_bot').on('click',function(){
	var title = $('#title').val();
	if(!title){
		alert('请输入标题');
		return 
	}
})
//删除选中的人
$('.user_list').on('click','.icon_delete',function(){
	$(this).parent().remove()
})
</script>
{/literal}
{/block}